home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / Interfaces&Libraries / Universal / Interfaces / AIncludes / GXMessages.a < prev    next >
Encoding:
Text File  |  1998-08-17  |  3.5 KB  |  164 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        GXMessages.a
  3. ;
  4. ;    Contains:    This file contains all of the public data structures,
  5. ;
  6. ;    Version:    Technology:    Quickdraw GX 1.1
  7. ;                Release:    Universal Interfaces 3.2
  8. ;
  9. ;    Copyright:    © 1994-1998 by Apple Computer, Inc., all rights reserved.
  10. ;
  11. ;    Bugs?:        For bug reports, consult the following page on
  12. ;                the World Wide Web:
  13. ;
  14. ;                    http://developer.apple.com/bugreporter/
  15. ;
  16. ;
  17.     IF &TYPE('__GXMESSAGES__') = 'UNDEFINED' THEN
  18. __GXMESSAGES__ SET 1
  19.  
  20.     IF &TYPE('__CONDITIONALMACROS__') = 'UNDEFINED' THEN
  21.     include 'ConditionalMacros.a'
  22.     ENDIF
  23.     IF &TYPE('__MACTYPES__') = 'UNDEFINED' THEN
  24.     include 'MacTypes.a'
  25.     ENDIF
  26.     IF &TYPE('__MIXEDMODE__') = 'UNDEFINED' THEN
  27.     include 'MixedMode.a'
  28.     ENDIF
  29.  
  30.  
  31. ;
  32. ;    >>>>>> CONSTANTS <<<<<<
  33. ;
  34. ;
  35.  
  36. ;  Message Manager Trap 
  37.  
  38. messageManagerTrap                EQU        $ABFB
  39.  
  40. ;  Message Manager Error Result Codes 
  41.  
  42. messageStopLoopingErr            EQU        -5775
  43. cantDeleteRunningHandlerErr        EQU        -5776
  44. noMessageTableErr                EQU        -5777
  45. dupSignatureErr                    EQU        -5778
  46. messageNotReceivedErr            EQU        -5799
  47.  
  48. ;    DATA TYPES
  49. ;
  50.  
  51.     IF OLDROUTINENAMES THEN
  52. ; typedef MessageHandlerOverrideProcPtr  MessageHandlerOverrideProc
  53.  
  54. ; typedef MessageGlobalsInitProcPtr     MessageGlobalsInitProc
  55.  
  56.     ENDIF    ; OLDROUTINENAMES
  57.  
  58.  
  59.  
  60.  
  61. ;
  62. ;    PUBLIC INTERFACES
  63. ;
  64. ;    Message Handler API Routines
  65. ;
  66.  
  67. ;
  68. ; extern long CountMessageHandlerInstances(void )
  69. ;
  70.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  71.         Macro
  72.         _CountMessageHandlerInstances
  73.             moveq               #40,D0
  74.             dc.w                $ABFB
  75.         EndM
  76.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  77.         IMPORT_CFM_FUNCTION CountMessageHandlerInstances
  78.     ENDIF
  79.  
  80. ;
  81. ; extern void *GetMessageHandlerClassContext(void )
  82. ;
  83.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  84.         Macro
  85.         _GetMessageHandlerClassContext
  86.             moveq               #41,D0
  87.             dc.w                $ABFB
  88.         EndM
  89.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  90.         IMPORT_CFM_FUNCTION GetMessageHandlerClassContext
  91.     ENDIF
  92.  
  93. ;
  94. ; extern void *SetMessageHandlerClassContext(void *anyValue)
  95. ;
  96.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  97.         Macro
  98.         _SetMessageHandlerClassContext
  99.             moveq               #42,D0
  100.             dc.w                $ABFB
  101.         EndM
  102.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  103.         IMPORT_CFM_FUNCTION SetMessageHandlerClassContext
  104.     ENDIF
  105.  
  106. ;
  107. ; extern void *GetMessageHandlerInstanceContext(void )
  108. ;
  109.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  110.         Macro
  111.         _GetMessageHandlerInstanceContext
  112.             moveq               #43,D0
  113.             dc.w                $ABFB
  114.         EndM
  115.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  116.         IMPORT_CFM_FUNCTION GetMessageHandlerInstanceContext
  117.     ENDIF
  118.  
  119. ;
  120. ; extern void *SetMessageHandlerInstanceContext(void *anyValue)
  121. ;
  122.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  123.         Macro
  124.         _SetMessageHandlerInstanceContext
  125.             moveq               #44,D0
  126.             dc.w                $ABFB
  127.         EndM
  128.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  129.         IMPORT_CFM_FUNCTION SetMessageHandlerInstanceContext
  130.     ENDIF
  131.  
  132. ;
  133. ; extern OSErr NewMessageGlobals(long messageGlobalsSize, MessageGlobalsInitUPP initProc)
  134. ;
  135.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  136.         Macro
  137.         _NewMessageGlobals
  138.             moveq               #45,D0
  139.             dc.w                $ABFB
  140.         EndM
  141.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  142.         IMPORT_CFM_FUNCTION NewMessageGlobals
  143.     ENDIF
  144.  
  145. ;
  146. ; extern void DisposeMessageGlobals(void )
  147. ;
  148.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  149.         Macro
  150.         _DisposeMessageGlobals
  151.             moveq               #46,D0
  152.             dc.w                $ABFB
  153.         EndM
  154.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  155.         IMPORT_CFM_FUNCTION DisposeMessageGlobals
  156.     ENDIF
  157.  
  158.  
  159.     ENDIF ; __GXMESSAGES__ 
  160.  
  161.